<template>
  <div class="page-container">
    <div class="page-inner">
      <p class="title">{{$t('message.qxzcglx')}}</p>
      <el-radio-group v-model="sType" @change="changeList">
        <div class="type-list">
          <el-radio label="htlx01">{{$t('message.xdxyl2')}}</el-radio>
        </div>
        <div class="type-list">
          <el-radio label="htlx02"><p style="display: inline-block;">{{$t('message.cjxml2')}}</p></el-radio>
        </div>
        <div class="type-list">
          <el-radio label="htlx03">{{$t('message.zsyzl2')}}</el-radio>
        </div>
        <div class="type-list">
          <el-radio label="htlx04">{{$t('message.qwfbl2')}}</el-radio>
        </div>
        <div class="type-list">
          <el-radio label="htlx05">{{$t('message.lmptl2')}}</el-radio>
        </div>
        <div class="type-list">
          <el-radio label="htlx06"><p style="display: inline-block;">{{$t('message.sfcxl2')}}</p></el-radio>
        </div>
      </el-radio-group>
    </div>
    <div class="btn">
      <button type="button" @click="submit" class="submit">{{$t('message.ture')}}</button>
    </div>
  </div>
</template>


<script>
import commonContract from "@components/commoncontract.vue";
import buried from "@/utils/buried";
export default {
  data() {
    return {
      sType: "htlx01"
    };
  },
  mounted() {
    buried("result_add_new", "add_new_pv");
  },
  methods: {
    changeList(evt) {
      console.log(evt);
      this.sType = evt;
    },
    submit() {
      let path = "";

      if (["htlx01", "htlx02", "htlx03"].includes(this.sType)) {
        // 合同
        path = "contractstatistics";
      } else {
        // 成果
        path = "achAdd";
      }
      this.$router.push({
        path,
        query: {
          type: this.sType
        }
      });
    }
  }
};
</script>

<style lang="scss" scoped>
.page-container {
  width: 100%;
  height: 100%;
  background: #fff;
}
.page-inner {
  width: 788px;
  padding-left: 40px;
  margin: 0 auto;
}
.page-inner {
  ::v-deep .el-radio {
    white-space: inherit;
  }
}
.type-list {
  // padding: 10px 0;
  ::v-deep .el-radio__label{
	  display: block;
	  margin-left: 16px;
	  line-height: 24px;
  }
  ::v-deep .el-radio__input{
	  top: 20px;
  }
}
.title {
  font-size: 16px;
  font-weight: bold;
  line-height: 64px;
}

.btn {
  text-align: center;
  margin: 60px 0 50px 0;
}

.submit {
  width: 171px;
  height: 40px;
  margin-right: 46px;
  color: rgba(255, 255, 255, 1);
  border: none;
  background: linear-gradient(
    90deg,
    rgba(255, 192, 2, 1) 0%,
    rgba(254, 140, 1, 1) 100%
  );
}
</style>